enum Jobs {
  Worker = "Worker", //0
  Farmer = "Farmer",
  Soldier = "Soldier",
  Boss = "Boss",
  Officer = "Officer",
  Child = "Child",
  Unemployed = "Unemployed",
}

interface IPerson12 {
  name: string;
  age: number;
  job: Jobs;
}

const p12: IPerson12 = {
  name: "张三疯",
  age: 60,
  job: Jobs.Boss,
};

console.log(p12);

if (p12.job === Jobs.Boss) {
  console.log(p12, "是一个企业主");
}
